<template>
    <div v-html = "payGateWay">{{payGateWay}}</div>
</template>

<script>
    export default {
        name: 'payGateWay',
        data(){
            return {
                payGateWay:''
            }
        } ,
        mounted () {
            console.log(this.$route.params.htmlData.split('<script>')[0]);
            let form = this.$route.params.htmlData.split('<script>')[0];
            this.payGateWay = form;
            this.$nextTick(()=> {
                document.forms[0].submit()
            })
            // document.forms[0].submit();

        },
        // watch:{
        //     payGateWay:function () {
        //
        //     }
        // }
    }
</script>

<style scoped>

</style>